﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="X.WebSite.Admin.Product.Detail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    产品信息
    <table>
        <tr>
            <td>
                名称：
            </td>
            <td>
                <asp:TextBox ID="txtProductName" runat="server" Width="400px"></asp:TextBox>不能出现中划线"-"
            </td>
        </tr>
        <tr>
            <td>
                类别：
            </td>
            <td>
                <asp:DropDownList ID="ddlCategoryId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                属性：
            </td>
            <td>
                <asp:CheckBox ID="chkIsAvailable" runat="server" Text="上架" /><asp:CheckBox ID="chkIsHotProduct"
                    runat="server" Text="热销" />
                <asp:CheckBox ID="chkIsRecommendatory" runat="server" Text="推荐" />
            </td>
        </tr>
        <tr>
            <td>
                价格：
            </td>
            <td>
                <asp:TextBox ID="txtPrice" runat="server" Width="400px" Text="0"></asp:TextBox>只能是数字
            </td>
        </tr>
        <tr>
            <td>
                序号：
            </td>
            <td>
                <asp:TextBox ID="txtOrderNum" runat="server" Width="400px" Text="0"></asp:TextBox>只能是数字
            </td>
        </tr>
        <tr>
            <td>
                Model：
            </td>
            <td>
                <asp:TextBox ID="txtModel" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                PartNumber：
            </td>
            <td>
                <asp:TextBox ID="txtPartNumber" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Certificate：
            </td>
            <td>
                <asp:TextBox ID="txtCertificate" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Color：
            </td>
            <td>
                <asp:TextBox ID="txtColor" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Guarantee：
            </td>
            <td>
                <asp:TextBox ID="txtGuarantee" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                HRC：
            </td>
            <td>
                <asp:TextBox ID="txtHRC" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Material：
            </td>
            <td>
                <asp:TextBox ID="txtMaterial" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top">
                描述：
            </td>
            <td>
                <CKEditor:CKEditorControl ID="ckeProductDescribe" BasePath="/Admin/CKEditor/" runat="server"></CKEditor:CKEditorControl>
            </td>
        </tr>
        <tr>
            <td>
                图片：
            </td>
            <td>
                <asp:FileUpload ID="FileUpload1" runat="server" /><br />
                <asp:FileUpload ID="FileUpload2" runat="server" /><br />
                <asp:FileUpload ID="FileUpload3" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                Title
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Keyword
            </td>
            <td>
                <asp:TextBox ID="txtKeyword" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top">
                Description
            </td>
            <td>
                <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="500px"
                    Height="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Tag
            </td>
            <td>
                <asp:TextBox ID="txtTag" runat="server" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right">
                <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvImages" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
        ShowHeader="False" DataKeyNames="Id" OnRowDeleting="gvImages_RowDeleting">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <img src='<%# Eval("ImageNameEx","/Upload/{0}") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
